import React, {Component} from 'react';

class ClassChildren extends Component {
    // 默认传递参数
    static defaultProps = {
        className: '测试'
    }

    render() {
        console.log(this.props);
        return (
            <div>
                <h4>类组件 ==> 子组件</h4>
                <div>age ==> {this.props.age}</div>
                <div>className ==> {this.props.className}</div>
            </div>
        );
    }
}

export default ClassChildren;